package com.kid.keep.dao.item;

import com.kid.keep.bo.CheckItemReportBO;
import com.kid.keep.po.CheckItemReport;

import java.util.Date;
import java.util.List;

/**
 * @Description CheckItemReport dao
 * @Author JOHN
 * @Create 2020-01-02
 * @Since 1.0.0
 */
@SuppressWarnings("all")
public interface ICheckItemReportRepository {

    int updateByChildIdAndStatus(CheckItemReport checkItemReport, Long childId, Integer status);

    int countByChildIdAndStatus(Long childId, Integer status);

    CheckItemReportBO findByIdAndCreatorId(Long id, Long creator);

    CheckItemReportBO findByChildIdAndStatus(Long childId, Integer status);

    CheckItemReportBO findByIdAndChildIdAndStatus(Long id, Long childId, Integer status);

    List<CheckItemReportBO> listByDateAndCreatorIdAndStatus(Date startDate, Date endDate, Long creatorId, Integer status);

    List<CheckItemReportBO> listByDateAndCreatorIdAndChildIdAndStatus(Date startDate, Date endDate, Long childId, Long creatorId, Integer status);

    int countCheckReport(Long creatorId, Integer status);


}

